<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>消息发送--人资系统</title>
<link rel="stylesheet"
	href="<c:url value="/static/plugins/zTree_v3/css/zTreeStyle/zTreeStyle.css" />"
	type="text/css">
<link rel="stylesheet"
	href="<c:url value="/static/plugins/zTree_v3/css/zTreeStyle/style.css" />"
	type="text/css">
<script type="text/javascript"
	src="<c:url value="/static/plugins/zTree_v3/js/jquery.ztree.all-3.5.min.js" />"></script>
<script type="text/javascript"
	src="<c:url value='/static/js/admin/qiye/message/send.js' />"></script>
</head>
<body>
	<c:if test="${!empty msg}">
		<div class="alert alert-green fadein-top"><span class="close rotate-hover"></span><strong>提示：</strong>${msg}</div>
	</c:if>
	<div id="panel-body" class="panel admin-panel" style="height: 100%;">
		<div id="panel-body-head" class="panel-head">
			<strong>消息发送</strong>
		</div>
		<div class="padding border-bottom">
			<form id="form" class="form" style="height: 100%;">
				<div id="line-body" class="line">
					<div class="x3" style="height: 100%; overflow: auto;">
						<div class="form-group">
							<div class="label">
								<label for="title">发送给：</label>
							</div>
							<div class="field">
								<div class="zTreeDemoBackground left">
									<ul id="deptTree" class="ztree"></ul>
								</div>
							</div>
						</div>
					</div>
					<div class="x9"
						style="height: 100%; padding-left: 10px; padding-right:10px; overflow: auto;">
						<div class="line">
							<div class="x4">
								<div class="form-group">
									<div class="label">
										<label for="title">消息类型</label>
									</div>
									<div class="field">
										<select id="msgType" name="type" class="input">
											<option value="0">文本消息</option>
											<option value="1">图文消息</option>
										</select>
									</div>
								</div>
							</div>
						</div>
						<div class="line" id="textMsg" style="padding-top: 10px;">
							<div class="x12">
								<div class="form-group">
									<div class="label">
										<label for="title">消息内容</label>
									</div>
									<div class="field">
										<textarea id=textContent class="input" placeholder="请填写消息内容"></textarea>
									</div>
								</div>
							</div>
						</div>
						<div id="newsMsg" style="display: block;">
							<div class="line">
								<div style="padding-top: 10px;">
									<div class="form-group">
										<div class="label">
											<label for="title">消息标题</label>
										</div>
										<div class="field">
											<input type="text" class="input" id="title"
												placeholder="请填写消息标题"
												data-validate="required:必填,length#<=50:不超过50个字" />
										</div>
									</div>
								</div>
							</div>
							<div class="line">
								<div class="x4" style="padding-top: 10px;">
									<div class="form-group">
										<div class="label">
											<label for="title">缩略图</label>
										</div>
										<div class="field">
											<span>建议尺寸：360像素 * 200像素</span><br />
											<div id="filePicker">选择图片</div>
										</div>
									</div>
								</div>
								<div class="x8" style="padding-top: 10px;">
									<div class="form-group">
										<div class="label">
											<label for="title">&nbsp;</label>
										</div>
										<div class="field" id="fileList"></div>
										<input type="hidden" id="image" />
									</div>
								</div>
							</div>
							<div class="line">
								<div class="x12" style="padding-top: 10px;">
									<div class="form-group">
										<div class="label">
											<label for="title">消息简介</label>
										</div>
										<div class="field">
											<textarea id="descript" class="input" placeholder="请填写消息简介"></textarea>
										</div>
									</div>
								</div>
							</div>
							<div class="line">
								<div class="x12" style="padding-top: 10px;">
									<div class="form-group">
										<div class="label">
											<label for="title">消息内容</label>
										</div>
										<div class="field">
											<script id="newsContent" type="text/plain" style="width:auto;height:220px;"></script>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				
				<div id="line-bottom" class="line">
					<div class="x12" style="padding-top: 15px; text-align: right;">
						<hr />
						<div class="form-group">
							<div class="field">
								<button type="button" class="button button-small bg-main"
									id="btnSend">发送</button>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
</body>
</html>